package com.lsabcd.dubbo.test;

public class IpHelper {

    private static final ThreadLocal<String> ipCache = new ThreadLocal<String>();

    public static String getClientIp(){
        return ipCache.get();
    }

    public static void setClientIp(String ip){
        ipCache.set(ip);
    }

    public static void clear(){
        ipCache.remove();
    }
}
